package params

type AddTieZiReq struct {
	// binding:"required"修饰的字段，若接收为空值，则报错，是必须字段
	Title      string `form:"title" json:"title" uri:"title" binding:"required"`
	AuthorId   int    `form:"authorId" json:"authorId" uri:"authorId" binding:"required"`
	Image      string `form:"image" json:"image" uri:"image" binding:"required"`
	Status     int    `form:"status" json:"status" uri:"status" `
	Visibility int    `form:"visibility" json:"visibility" uri:"visibility" binding:"required"`
	Types      string `form:"types" json:"types" uri:"types" binding:"required"`
}

type SearchTieZiReq struct {
	// binding:"required"修饰的字段，若接收为空值，则报错，是必须字段
	Types string `form:"types" json:"types" uri:"types"`
}

type CreateFollowReq struct {
	UserId int `form:"userId" json:"userId" uri:"userId" binding:"required"`
	DistId int `form:"distId" json:"distId" uri:"distId" binding:"required"`
}

// 创建评论
type CreateCommentsReq struct {
	UserId  int    `form:"userId" json:"userId" uri:"userId" binding:"required"`
	VideoId int    `form:"videoId" json:"videoId" uri:"videoId" binding:"required"`
	Comment string `form:"comment" json:"comment" uri:"comment" binding:"required"`
}

type CreateLikesReq struct {
	UserId  int `form:"userId" json:"userId" uri:"userId" binding:"required"`
	VideoId int `form:"videoId" json:"videoId" uri:"videoId" binding:"required"`
}

type DelLikesReq struct {
	UserId  int `form:"userId" json:"userId" uri:"userId" binding:"required"`
	VideoId int `form:"videoId" json:"videoId" uri:"videoId" binding:"required"`
}

type GetTieZiByIdReq struct {
	Id int `form:"id" json:"id" uri:"id" binding:"required"`
}
